package main

import (
	"com.yy.api/server/config"
	_ "com.yy.api/server/lib/redis"
	_ "com.yy.api/server/models/mapper"
	_ "com.yy.api/server/router"
	"com.yy.api/server/wire"
	"github.com/beego/beego/v2/server/web"
)

func main() {
	// 中间件
	// CORS中间件
	wm := wire.NewWireManager()
	wm.RegisterCORSFilters()

	// 启动服务
	web.Run(config.AppPort)
}
